package com.mdd.common.entity.image;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 评论图片实体
 */
@Data
@NoArgsConstructor
public class GoodsCommentImage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    private Long id; //
    private Long commentId; // 服务评价id
    private String uri; // 图片

    public GoodsCommentImage(Long commentId, String commentUrl) {
        this.commentId = commentId;
        this.uri = commentUrl;
    }
}